package br.com.lambdacore.validator.impl;

public class EqualValidator extends ObjectValidator {

	protected EqualValidator(Object object) {
		super(object);
	}

	@Override
	public boolean equalThan(Object object) {
		return this.getObject().equals(object);
	}

	@Override
	public boolean notEqualThan(Object object) {
		return !this.equalThan(object);
	}

	public static EqualValidator is(Object object) {
		return new EqualValidator(object);
	}
}
